#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>


#define MY_INFO(FMT, ...) my_info(FMT, __VA_ARGS__)

void my_info(char *func, const char *fmt, ...){
    char buf[128];

    va_list args;
    va_start(args, fmt);

    vsnprintf(buf, sizeof(buf), fmt, args);
    va_end(args);

    printf("[%s]%s\n", func, buf);
}




void test01(){
    printf("%s %d\n", __FUNCTION__, __LINE__);
    int a = 0x01020304;
    char *p = (char *)&a;
    for(int i=0;i<4;++i){
        printf(">>>%x ", *(p+i));
    }
}


int main(int argc, char *argv[]){
    printf("=================================\n");
    // test01();

    // MY_INFO(">>>", "%s:%d", "alex", 18);
    return 0;
}